projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed0f40a
)
gpio: Correct handling of 'gpio status'
author
Simon Glass
<
[email protected]
>
Sun, 14 Feb 2016 23:28:59 +0000
(16:28 -0700)
committer
Tom Rini
<
[email protected]
>
Mon, 15 Feb 2016 20:58:25 +0000
(20:58 +0000)
This is broken - we need to look at the first two characters to distinguish
'gpio status' from 'gpio set'.
Fixes: 0ffe6ab5 (gpio: Allow 's' as an abbreviation for 'status')
Reported-by: Soeren Moch <
[email protected]
>
Signed-off-by: Simon Glass <
[email protected]
>
Tested-by: Soeren Moch <
[email protected]
>
Reviewed-by: Bin Meng <
[email protected]
>
Tested-by: Hannes Schmelzer <
[email protected]
>
cmd/gpio.c
patch
|
blob
|
history
diff --git
a/cmd/gpio.c
b/cmd/gpio.c
index 2b78b168663e05dde9e70d0a15696db11079c4ac..693998e8bd5d14822504aa5806c8f9ad0f7f1010 100644
(file)
--- a/
cmd/gpio.c
+++ b/
cmd/gpio.c
@@
-141,7
+141,7
@@
static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
#endif
if (argc > 0)
str_gpio = *argv;
- if (!strncmp(str_cmd, "status",
1
)) {
+ if (!strncmp(str_cmd, "status",
2
)) {
/* Support deprecated gpio_status() */
#ifdef gpio_status
gpio_status();